package cn.information.utils;


import cn.information.bean.Supplier;
import cn.information.bean.User;
import cn.information.dao.SupplierDao;
import cn.information.view.MainUI;

public class Test {//测试数据库连接
    public static void main(String[] args, User user) {
        new MainUI(user).setVisible(true);
        SupplierDao gysxxDao = new SupplierDao();
        for(Supplier supplier : gysxxDao.findAll())
        {
            System.out.println(supplier.getGysid()+supplier.getGysname()+supplier.getGysphone()+supplier.getAddress()+supplier.getSpname());
        }

    }
    public static void main(String[] args) {
        new DButil();
    }
}





////        Connection conn = DButil.getConnection();
////        //查询 todo
////        DButil.close(conn);
////插入
//UserDao userDao = new UserDao();
//User u = new User();
//        u.setUname("lll");
//        u.setPaswrd("123999");
//        u.setPurview(2);
//        userDao.add(u);